import CONFIG from "../../lib/config"
function Template ({name, qrcode_img, source}) {
    let title = ''
    if(!!name){
        title = `在[${name}]中`
    }
    return (
        <div className="Redirect">
            <div className="content">
                <div className="img-area lux-mt90">
                    <img src="//cdn2.jinlb.cn/web/weixin/images/sudabg.png" alt="" className="end"/>
                    <img className="front" src={qrcode_img} />
                </div>
                <div className="desc lux-mt90 light">
                    {source === 'jlb' ? '长按识别二维码': ''}关注近邻宝公众号
                </div>
                <div className="desc lux-mt10">
                    {source === 'jlb' ? '即可柜体寄件' : `即可${title}一键取件`}
                </div>
            </div>
        </div>
    )
}

module.exports = {
    Template
}